---
layout: m1x_soap
title: Memo Cancel
---
				    
				    <h3><a name="order_creditmemo.cancel-Module%3AOrderCreditMemoAPI"></a>Module: Order Credit Memo API</h3>

<h4><a name="order_creditmemo.cancel-Resource%3Asalesordercreditmemo"></a>Resource: sales_order_creditmemo</h4>

<h5><a name="order_creditmemo.cancel-Aliases%3Aordercreditmemo"></a>Aliases: order_creditmemo</h5>

<h5><a name="order_creditmemo.cancel-Method%3A"></a>Method: </h5>
<ul>
	<li>order_creditmemo.cancel (SOAP V1)</li>
	<li>salesOrderCreditmemoCancel (SOAP V2)</li>
</ul>


<p>Allows you to cancel an existing credit memo.</p>

<p><b>Arguments:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> sessionId </td>
<td> Session ID </td>
</tr>
<tr>
<td> string </td>
<td> creditmemoIncrementId </td>
<td> Credit memo increment ID </td>
</tr>
</tbody></table>


<p><b>Return:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> result </td>
<td> Result of canceling the credit memo </td>
</tr>
</tbody></table>


<p><b>Faults:</b></p>


<table><tbody>
<tr>
<th> Fault Code </th>
<th> Fault Message </th>
</tr>
<tr>
<td> 100 </td>
<td> Requested credit memo does not exist. </td>
</tr>
<tr>
<td> 104 </td>
<td> Credit memo status not changed. </td>
</tr>
</tbody></table>



<h4><a name="order_creditmemo.cancel-Examples"></a>Examples</h4>

<h5><a name="order_creditmemo.cancel-RequestExampleSOAPV1"></a>Request Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
$sessionId = $proxy-&gt;login('apiUser', 'apiKey');
$creditmemoIncrementId = '100000637'; //increment id of existing credit memo

$isCreditMemoCanceled = $proxy-&gt;call($sessionId, 'order_creditmemo.cancel', array($creditmemoIncrementId));</pre>
		</div>
</div></div>

				    
Create the Magento file system owner                   			    
